package com.umfb.edu.mapper;

import com.umfb.demo.entity.edu.Album;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AlbumMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Album record);

    int insertSelective(Album record);

    Album selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Album record);

    int updateByPrimaryKey(Album record);

    Album selectByAlbumId(String albumId);
    /**
     * 查询相册
     * @param columnId
     * @param state
     * @return
     */
    List<Album> findAlbumByColumnIdAndState(@Param("columnId")String columnId, @Param("state")Byte state);
}